export default {
  data() {
    return {
      maxHeightDialog: this.getHeightAndWidth(),
      loading: false,
      detailObj: {}
    }
  },
  created() {},
  mounted() {},
  methods: {
    getHeightAndWidth() {
      let clientHeight = 0
      if (
        document.body.scrollHeight === window.screen.height &&
        document.body.scrollWidth === window.screen.width
      ) {
        clientHeight = window.screen.height - 5 // 网页可见区域高
      } else {
        clientHeight = document.body.clientHeight - 5 // 网页可见区域高
      }
      return clientHeight - 220 + 'px'
    },
    getValidatorForm(triggerType = 'blur') {
      return [
        { required: true, message: this.emptyMessage, trigger: triggerType }
      ]
    }
  }
}
